import LoginView from "../views/loginView.vue";
import CommonStart from "../views/commonStart.vue";
import DataStatisticInfo from "../views/dataStatisticInfo.vue";
import PersonCenter from "../views/personCenter/personCenter.vue";
import MyLoginInfo from "../views/personCenter/myLoginInfo.vue";
import ModPassword from "../views/personCenter/modPassword.vue";
const commonRoutes = [
    {
        path: '/',
        component: CommonStart
    },
    {
        path: '/login',
        component: LoginView
    },
    {
        path: '/statistic',
        component: DataStatisticInfo
    },
    {
        path: '/personCenter',
        component: PersonCenter,
        redirect: '/personCenter/myLoginInfo',
        children: [
            {
                path: 'myLoginInfo',
                component: MyLoginInfo
            },
            {
                path: 'modPassword',
                component: ModPassword
            }
        ]
    }
]

export default commonRoutes
